//
//  TravelStrokeModel.m
//  ToWhere
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "TravelStrokeModel.h"

@implementation TravelStrokeModel


-(void)dealloc
{   [_name release];
    [_plan_days_count release];
    [_plan_nodes_count release];
    [_image_url release];
    [_ID release];
    [_DES release];
    
    [super dealloc];
    
}

-(instancetype)initWithNSDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(TravelStrokeModel *)travelStrokeModelWithNSDictionary:(NSDictionary *)dic
{
    TravelStrokeModel *model = [[TravelStrokeModel alloc]initWithNSDictionary:dic] ;
                                                                                    
    return  [model autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"description"]) {
        
        self.DES = value;
    }
    
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
    
}



@end
